<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">聊天列表</h1>
		</header>
		<div class="mui-content">
			<ul class="mui-table-view">
				<li class="mui-table-view-cell">
					<a class="mui-navigate-right" href = "chart.html">好友1</a>
				</li>
				<li class="mui-table-view-cell">
					<a class="mui-navigate-right" href = "chart.html">好友2</a>
				</li>
				<li class="mui-table-view-cell">
					<a class="mui-navigate-right" href = "chart.html">好友3</a>
				</li>
			</ul>
		</div>
		<script src="../js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});

			mui.plusReady(function() {
                mui('#list').on('tap', 'a', function() {
                    var href = this.getAttribute('href');
                    mui.openWindow({
                        url: href,
                        id: href,
                        styles: {
                            popGesture: "close",
                            statusbar: {
                                background: "#f7f7f7"
                            }
                        },
                        show: {
                            duration: 300
                        }
                    });
                })
            })
		</script>
	</body>

</html>